package com.pn.controller;


import com.pn.entity.Result;
import com.pn.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/auth")
@RestController
public class AuthController {

    @Autowired
    private AuthService authService;

    // 查询所有菜单树的url接口
    @RequestMapping("/auth-tree")
    public Result loadAllAuthTree() {
        return Result.ok(authService.allAuthTree());
    }

}
